import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    component: () => import('../views/tabbar/Tabbar.vue'),
    children: [
      {
        path: '/',
        name: 'Home',
        component: () => import('../views/home/Home.vue'),
        children: [
          {
            path: '/',
            name: 'SystemRecomm',
            component: () => import('../views/home/systemrecomm/SystemRecomm.vue'),
            meta: { keepAlive: true }
          }
        ]
      },
      {
        path: '/my',
        name: 'My',
        component: () => import('../views/my/My.vue')
      }
    ]
  },
  {
    path: '/scenic/:scenicId',
    name: 'ScenicDetial',
    component: () => import('../views/scenicdetail/ScenicDetail.vue'),
    props: true
  },
  {
    path: '/qrscan',
    name: 'QRScan',
    component: () => import('../views/qrscan/QRScan.vue'),
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router